<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
class PHPExcel_Writer_OpenDocument_Cell_Comment
{
    public static function write(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Cell $cell)
    {
        $comments = $cell->getWorksheet()->getComments();
        if(!isset($comments[$cell->getCoordinate()])) {
            return NULL;
        }
        $comment = $comments[$cell->getCoordinate()];
        $objWriter->startElement("office:annotation");
        $objWriter->writeAttribute("svg:width", $comment->getWidth());
        $objWriter->writeAttribute("svg:height", $comment->getHeight());
        $objWriter->writeAttribute("svg:x", $comment->getMarginLeft());
        $objWriter->writeAttribute("svg:y", $comment->getMarginTop());
        $objWriter->writeElement("dc:creator", $comment->getAuthor());
        $objWriter->writeElement("text:p", $comment->getText()->getPlainText());
        $objWriter->endElement();
    }
}

?>